﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{
    /// <summary>
    /// 输入参数
    /// </summary>
    public class NG_REPORT
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 托盘号
        /// </summary>
        public string PalletCode { get; set; }
        /// <summary>
        /// 品类类型
        /// </summary>
        public string CategoryType { get; set; }
        /// <summary>
        /// 生产批次号
        /// </summary>
        public string ProductionBatchCode { get; set; }
        /// <summary>
        /// 不良品数量
        /// </summary>
        public int NOKQuantity { get; set; }
        /// <summary>
        /// 不良品集合
        /// </summary>
        public List<NOKSets_Lists> NOKSets { get; set; } = new List<NOKSets_Lists>();
        /// <summary>
        /// 报废数量
        /// </summary>
        public int ScrappedQuantity { get; set; }
        /// <summary>
        /// 报废品集合
        /// </summary>
        public List<ScrappedSets_Lists> ScrappedSets { get; set; } = new List<ScrappedSets_Lists>();
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }


    }
    /// <summary>
    /// 不良品集合
    /// </summary>
    public class NOKSets_Lists
    {

        /// <summary>
        /// 顺序号
        /// </summary>
        public int SequenceNumber { get; set; }
        /// <summary>
        /// 部件条码
        /// </summary>
        public string PartSerialNumber { get; set; }

    }
    /// <summary>
    /// 报废品集合
    /// </summary>
    public class ScrappedSets_Lists
    {

        /// <summary>
        /// 顺序号
        /// </summary>
        public int SequenceNumber { get; set; }
        /// <summary>
        /// 部件条码
        /// </summary>
        public string PartSerialNumber { get; set; }
    }

    /// <summary>
    /// 回传数据
    /// 返回信息，返回方式：同步
    /// </summary>
    public class NG_REPORT_response
    {
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }

    }
}
